<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>数据字典-大正</title>
</head>

<body>
	<span style="font-weight: bold; color:#F93; aligh: center; font-size: 20px">数据字典-修改</span>
	
	
		<!--<s:hidden name="action" value="adddd"></s:hidden>
		<s:hidden name="optype" value="#request.optype"></s:hidden> -->
		<s:if test='#request.operation == "new"'>
		<s:form action="datadictaction?action=adddd&optype=%{#request.optype}">
			<s:textfield name="iddd" label='编号' readOnly="true" value="系统自动生成"></s:textfield>
			<s:textfield name="namedd" label='名称'></s:textfield>
			<s:if test='#request.optype == "metalper"'>
				<s:textfield name="waxperdd" label='与蜡比重'></s:textfield>
			</s:if>
			<s:if test='#request.optype == "sstype"'>
				<s:textfield name="unitdd" label='单位'></s:textfield>
			</s:if>
			<s:if test='#request.optype == "embed"'>
				<s:textfield name="shapedd" label='形状'></s:textfield>
				<s:textfield name="specdd" label='规格'></s:textfield>
				<s:textfield name="ismstonedd" label='主石'></s:textfield>
			</s:if>
			<s:submit value="提交"></s:submit>
		</s:form>
		</s:if>
		<s:else>
			<s:form action="datadictaction?action=moddd&optype=%{#request.optype}">
				<s:textfield name="iddd" label='编号' readOnly="true" value="%{#request.ddrecord.id}"></s:textfield>
				<s:textfield name="namedd" value="%{#request.ddrecord.name}" label='名称'></s:textfield>
				<s:if test='#request.optype == "metalper"'>
					<s:textfield name="waxperdd" value="%{#request.ddrecord.waxper}" label='与蜡比重'></s:textfield>
				</s:if>
				<s:if test='#request.optype == "sstype"'>
					<s:textfield name="unitdd" label='单位' value="%{#request.ddrecord.unit}"></s:textfield>
				</s:if>
				<s:if test='#request.optype == "embed"'>
					<s:textfield name="shapedd" label='形状' value="%{#request.ddrecord.shape}"></s:textfield>
					<s:textfield name="specdd" label='规格' value="%{#request.ddrecord.spec}"></s:textfield>
					<s:textfield name="ismstonedd" label='主石' value="%{#request.ddrecord.ismstone}"></s:textfield>
				</s:if>
				<s:submit value="提交"></s:submit>
			</s:form>
		</s:else>
</body>
</html>
